namespace CRM.DataAccess.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class ORGANIZATION_DETAIL
    {
        [Key]
        [Column(Order = 0)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long OrgID { get; set; }

        public long? UserID { get; set; }

        [StringLength(100)]
        public string ORGANIZATION_NAME { get; set; }

        [StringLength(201)]
        public string CONTACT_NAME { get; set; }

        public long? ContactID { get; set; }

        [StringLength(200)]
        public string COMPANY_WEBSITE { get; set; }

        [StringLength(25)]
        public string CONTACT_NUMBER { get; set; }

        [StringLength(100)]
        public string MEMBER_OF { get; set; }

        [StringLength(100)]
        public string PRIMARY_EMAIL { get; set; }

        [StringLength(61)]
        public string ASSIGN_TO { get; set; }

        [StringLength(200)]
        public string OFFICE_CITY { get; set; }

        [StringLength(50)]
        public string OFFICE_COUNTRY { get; set; }

        [StringLength(25)]
        public string TICKER_SYMBOL { get; set; }

        [StringLength(25)]
        public string FAX { get; set; }

        [StringLength(25)]
        public string PHONE_SECONDARY { get; set; }

        [StringLength(200)]
        public string EMPLOYEE { get; set; }

        [StringLength(100)]
        public string SECONDARY_EMAIL { get; set; }

        [StringLength(100)]
        public string OWNERSHIP { get; set; }

        [StringLength(50)]
        public string ORGANIZATION_INDUSTRY_NAME { get; set; }

        [StringLength(50)]
        public string ORGANIZATION_RATING_NAME { get; set; }

        [StringLength(50)]
        public string ORGANIZATION_TYPE_NAME { get; set; }

        [StringLength(200)]
        public string OFFICE_ADDRESS { get; set; }

        [StringLength(200)]
        public string HOME_ADDRESS { get; set; }

        [StringLength(200)]
        public string HOME_PO_BOX { get; set; }

        [StringLength(200)]
        public string OFFICE_PO_BOX { get; set; }

        [StringLength(200)]
        public string OFFICE_STATE { get; set; }

        [StringLength(200)]
        public string HOME_CITY { get; set; }

        [StringLength(200)]
        public string HOME_STATE { get; set; }

        [StringLength(50)]
        public string OFFICE_POSTAL_CODE { get; set; }

        [StringLength(50)]
        public string HOME_POSTAL_CODE { get; set; }

        [StringLength(50)]
        public string HOME_COUNTRY { get; set; }

        [StringLength(100)]
        public string COMPANY_REGISTRATION_NUMBER { get; set; }

        public long? MEMBER_OF_ORG_ID { get; set; }

        public long? INDUSTRY_ID { get; set; }

        public long? RATING_ID { get; set; }

        public long? TYPE_ID { get; set; }

        public long? ASSIGN_TO_ID { get; set; }

        [Key]
        [Column(Order = 1)]
        public DateTime DATE_ENTERED { get; set; }
    }
}
